home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DJEMU106.ARJ / E00.CC < prev    next >
C/C++ Source or Header  |  1991-04-22  |  422b  |  28 lines

  1. #include "emu.h"
  2. #include "rmov.h"
  3.  
  4. void emu_00()
  5. {
  6.   if (empty())
  7.     return;
  8.   if (modrm > 0277)
  9.   {
  10.     // fadd st,st(i)
  11.     int i = modrm & 7;
  12.     if (empty(i))
  13.       return;
  14.     reg tmp;
  15.     r_add(st(), st(i), tmp);
  16.     r_mov(tmp, st());
  17.     return;
  18.   }
  19.   else
  20.   {
  21.     // fadd m32real
  22.     reg t1, t2;
  23.     r_mov((float *)get_modrm(), t1);
  24.     r_add(t1, st(), t2);
  25.     r_mov(t2, st());
  26.   }
  27. }
  28.